import Vue from 'vue'
import Router from 'vue-router'
import Home from '../pages/home/components/homePage.vue'
import City from '../pages/City/City.vue'
import Detail from '../pages/detail/detail.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {// 首页路由
      path: '/',
      name: 'Home',
      component: Home
    },
    {// city页面路由
      path: '/city',
      name: 'City',
      component: City
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      component: Detail
    }
  ]
})
